package cn.veliger.controller;

import cn.veliger.domain.User;
import cn.veliger.page.PageResult;
import cn.veliger.qo.BaseQueryObject;
import cn.veliger.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author veliger@16.com
 * @version 1.0
 * @create 2018-11-08 10:48
 * @desc
 **/
@RestController
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("getAll")
    public PageResult<User> getAll(BaseQueryObject qo) {
        return userService.queryObject(qo);
    }
}
